package com.g2.admin.model.po;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户授权信息表。包含单位和用户授权。
 * 一个用户的权限 = 此用户所属角色的权限 + 此用户的单独权限。
 *                                      -
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "auth_permit_user")
public class AuthPermitUserPo implements Serializable {
	private static final long serialVersionUID = -295187906012064000L;

	@ApiModelProperty(value = "权限编码")
	private String authCode;
	@ApiModelProperty(value = "权限名称")
	private String authName;
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	@ApiModelProperty(value = "创建者ID")
	private Long creator;
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;
	@ApiModelProperty(value = "显示顺序，越大越靠前。只有栏目和菜单才有用")
	private Integer order;
	@ApiModelProperty(value = "类型：1、栏目；2、菜单；3、按钮；4、功能。第4类型属于后台校验的权限")
	private Integer type;
	@ApiModelProperty(value = "用户ID")
	private Long userId;
	@ApiModelProperty(value = "用户名")
	private String username;
	@ApiModelProperty(value = "所属系统编码")
	private String systemCode;
	@ApiModelProperty(value = "所属系统名称")
	private String systemName;
}